Use PESetSectionFormatFormula to change the specified section format formula to the formula string you supply as a parameter. This function will only change the text of a formula which already exists in the report; you cannot use it to add a formula. When you give the user the ability to change the formula at print time, your link must include code to replace the formulaString parameter with a user
BOOL CRPE_API PESetSectionFormatFormula (
short printJob,
short sectionCode,
short formulaName,
const char FAR *formulaString );
Specifies the print job for which you want to set a new selection formula string. | |
Specifies the Section Codes, for the report section(s) for which you want to set formatting options. See Working with section codes. | |
Specifies the name of the formatting formula for which you want to supply a new string. Use one of the PE_FFN_XXX Area/Section Format Formula Constants. | |
Specifies a pointer to the null |
Declare Function PESetSectionFormatFormula Lib "crpe32.dll" (
ByVal printJob As Integer, ByVal sectionCode As Integer,
ByVal formulaName As Integer, ByVal FormulaString As String ) As Integer
function PESetSectionFormatFormula (
printJob: Word;
sectionCode: smallint;
formulaName: smallint;
formulaString: PChar
): Bool stdcall;
Seagate Software IMG Holdings, Inc. http://www.seagatesoftware.com Support services: http://support.seagatesoftware.com |